package cn.lysj.framework.foodv2.vo;

import cn.lysj.framework.base.BaseEntity;
import cn.lysj.framework.common.validate.annotation.*;
import cn.lysj.framework.common.validate.annotation.Number;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: ZhangWenJian
 * @Create: 2018/11/1--15:09
 * @Description:
 */
@Data
public class FoodDto extends BaseEntity {

    @NotBlank(message = "请填写菜品名称")
    private String name;
    @NotNull(message = "价格不能为空")
    @Min(message = "价格必须大于0",equal = false)
    @Column(columnDefinition = "decimal(10,4)")
    private BigDecimal money; //价格
    @Min(message = "虚拟销量必须大于0",equal = false)
    private Integer virtualSellNum;//虚拟销量
    private Integer actSellNum;//实际销量
    @NotBlank(message = "请填写原料介绍")
    private String foodMaterial;//原料介绍
    private String foodType;
    @Number(message = "排序值不能为空")
    @Min(message = "排序值必须大于0",equal = false)
    private Integer rank;
    private String logo; //图片
    private String remark;//备注
    private String taste;  //口味

}
